
using System;
using Gtk;

namespace Subsync.GUI
{


	public class GUIStarter
	{

		public GUIStarter (string[] args)
		{
			
			// Init
			Application.Init();
			Window mainwin = new TopWin();
			
			// Events
			mainwin.DeleteEvent += delete_event;

			// Exec
			mainwin.Show();
			Application.Run();
			
		}
		
		static void delete_event (object obj, DeleteEventArgs args)
        {
        	Application.Quit ();
        }

	}
}
